<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      {notempty name="__MODULE__"}
      <div class="expand-info">
        <div class="expand-icon">
          <img src="{$__MODULE__.icon_image}" />
        </div>
        <h3 class="title">{$__MODULE__.alias}</h3>
        <p class="version">版本：{$__MODULE__.version}</p>
      </div>
        {notempty name="all_module_list"}
        <!--常用应用-->
        <ul class="sidebar-menu menu-open" data-widget="tree">
          <li class="treeview">
            <a>
                <i class="fa fa-circle-o"></i>
                <span>切换应用</span>
                
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
              {volist name="all_module_list" id="vo"}
              <li>
                  <a href="{:url($vo.admin_entry)}">  
                    <i class="fa fa-circle-o"></i>
                    <span>{$vo.alias}</span>
                </a>
              </li>
              {/volist}
              <!--更多应用-->
              <li>
                <a href="{:url('admin/module/index')}">  
                    <i class="fa fa-circle-o"></i>
                    <span>更多应用...</span>
                </a>
              </li>
            </ul>
          </li>
        </ul>
        {/notempty}
      {/notempty}
      <!-- sidebar menu: : style can be found in sidebar.less -->
      {volist name="__MODULE_MENU__.child" id="sub_menu"}
      <ul class="sidebar-menu" data-widget="tree">
        
        <li class="treeview menu-open">
          <a>
              {notempty name="sub_menu.icon"}
                  <i class="fa fa-{$menu.icon}"></i>
              {else /}
                  <i class="fa fa-circle-o"></i>
              {/notempty}
              
              {notempty name="key"}
                <span>{$key}</span>
              {/notempty}
              <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu menu-open">
              {volist name="sub_menu" id="c_menu"}
              <li data-id="{$c_menu.id}" data-url="{$c_menu.url|url}">
                  <a href="{$c_menu.url|url}">
                    {notempty name="c_menu.icon"}
                        <i class="fa fa-{$c_menu.icon}"></i>
                    {else /}
                        <i class="fa fa-circle-o"></i>
                    {/notempty}
                    {$c_menu.title}
                </a>
              </li>
              {/volist}
          </ul>
        </li>
        
      </ul>
      {/volist}
      {notempty name="all_module_list"}
      {if condition="($this_controller == 'index')"}
      <!--常用应用-->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="treeview menu-open">
          <a>
              <i class="fa fa-circle-o"></i>
              <span>应用入口</span>
              
              <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu menu-open">
            {volist name="all_module_list" id="vo"}
            <li>
                <a href="{:url($vo.admin_entry)}">  
                  <i class="fa fa-circle-o"></i>
                  <span>{$vo.alias}</span>
              </a>
            </li>
            {/volist}
          </ul>
        </li>
      </ul>
      {/if}
      {/notempty}
      
      {notempty name="__ADDONS_MENU__"}
      {if condition="($this_controller == 'index') OR ($this_controller == 'module') OR ($this_controller == 'addons') OR (!empty($addons_admin ))"}
      <!--插件菜单-->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="treeview menu-open">
          <a>
              <i class="fa fa-circle-o"></i>
              <span>插件入口</span>
              
              <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu menu-open">
            {volist name="__ADDONS_MENU__" id="menu"}
            <li>
                <a href="{$menu.url|url}">  
                  <i class="fa fa-circle-o"></i>
                  <span>{$menu.title}</span>
              </a>
            </li>
            {/volist}
          </ul>
        </li>
      </ul>
      {/if}
      {/notempty}
    </section>
    <!-- /.sidebar -->
  </aside>